package com.lytfly.flowable.modules.flow.service.impl;

import com.lytfly.flowable.modules.flow.mapper.IFlowableHisActinstMapper;
import com.lytfly.flowable.modules.flow.mapper.IFlowableRunActinstMapper;
import com.lytfly.flowable.modules.flow.service.IFlowableActinstService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: flow
 * @description:
 * @author: Bruce.Liu
 * @create: 2021-05-06 14:14
 **/
@Service
public class FlowableActinstServiceImpl implements IFlowableActinstService {

    @Autowired
    private IFlowableRunActinstMapper runActinstMapper;

    private IFlowableHisActinstMapper hisActinstMapper;

    @Override
    public void deleteActinstByIds(List<String> actIds) {
        runActinstMapper.deleteRunActinstsByIds(actIds);
        hisActinstMapper.deleteHisActinstsByIds(actIds);
    }
}
